<?php if(!defined('BASEPATH'))exit('No direct script access allowed'); ?>
<div class="sort">
    <div class="selected" id="selectSort"><?php echo $sorted; ?></div>
    <div class="label"><?php echo lang('SORT_BY'); ?>:</div>
    <div class="contain" id="containSort">
        <?php foreach($sorts as $sort=>$by){ ?>
        <div>
            <a href="<?php echo $url.'sort/'.$sort; ?>/by/asc" title="<?php echo $by[0]; ?>"><?php echo $by[0]; ?></a>
        </div>
        <div>
            <a href="<?php echo $url.'sort/'.$sort; ?>/by/desc" title="<?php echo $by[1]; ?>"><?php echo $by[1]; ?></a>
        </div>
        <?php } ?>
    </div>
</div>